package ru.geyes.screw.json;

import ru.geyes.screw.closures.Function1S;
import ru.geyes.screw.closures.Function1;

/**
 * @author alex
 *         date 14.06.2008
 *         time 12:19:39
 */
public class ReflectionSerializerBuilder {

    public static <T> ClassSerializer buildSerializer(JsonConfig config, final Class<T> c) {
        Function1S<T> srF = new Function1S<T>() {
            public String apply(T o) {
                return null;
            }
        };

        Function1<T, String> dsF = new Function1<T, String>() {
            public T apply(String param) {
                return null;
            }
        };
        return new ClassSerializer(c, srF, dsF);
    }
}
